package com.gg.user.gguser.service;

import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface GgContractSerice {

    /**
     * 增加
     */
    Object addContractItems(HttpServletResponse response, HttpServletRequest request, String ggCNumber, String ggCContractName, String ggCInstitutionalName, String ggCTypeOfContract, String ggCcontractAmount, String ggCpersonInCharge, String ggCAuditStatus, String ggCContractTime, String ggCDueTime, String ggCNatureOfContract, String ggCContractContact, String ggCTotalContractAmount, String ggCPaymentMethod, String ggCSignedBy, String ggCContractSeal, String ggCSignatureOfContract, String ggCRemarks, String ggCPploadInformation, String ggCExpirationReminder) throws Exception;

    /**
     * 删除
     */
    Object delectContract(HttpServletResponse response, HttpServletRequest request, String ggCNumber) throws Exception;

    /**
     * 修改
     */
   Object updateContractItems(HttpServletResponse response, HttpServletRequest request, String ggCNumber, String ggCContractName, String ggCInstitutionalName, String ggCTypeOfContract, String ggCcontractAmount, String ggCpersonInCharge, String ggCAuditStatus, String ggCContractTime, String ggCDueTime, String ggCNatureOfContract, String ggCContractContact, String ggCTotalContractAmount, String ggCPaymentMethod, String ggCSignedBy, String ggCContractSeal, String ggCSignatureOfContract, String ggCRemarks, String ggCPploadInformation, String ggCExpirationReminder,Integer ggCId) throws Exception;

    /**
     * 查询
     */
    Object getContract(HttpServletResponse response, HttpServletRequest request, Integer page, Integer pageNumber ,String name, String type,String starttime,String endtime) throws Exception;

    /**
     * 单个查询
     */
    Object getContractItems(HttpServletResponse response, HttpServletRequest request, Integer itemsid) throws Exception;

    /**
     * 单个删除
     */
    Object delectContractItmes(HttpServletResponse response, HttpServletRequest request, Integer itemsid) throws Exception;

    /**
     * 文件上传
     */
    String  uploadContract(HttpServletResponse response, HttpServletRequest request, MultipartFile file) throws Exception;
}
